package com.service;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dao.DepDAO;
import com.pojo.Dep;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class DepService extends ServiceImpl<DepDAO, Dep> {

    @Autowired
    private  DepDAO depDAO;

    /**
     *
     * @param dep
     * @return
     */
    public boolean addDep(Dep dep)
    {
        //新增部门到数据库
        boolean f = this.save(dep);
        int n = 1/0;
        return f;
    }

}
